<?php

class Application_Model_DbTable_Users extends Zend_Db_Table_Abstract
{

    protected $_name = 'users';

	function login($username, $password) {
		$row = $this->fetchRow("login = '{$username}' and password = '{$password}'");
		if(!$row) {
			return false;
		}
		return $row->toArray();
	}
}

